package com.siwen.common;

public enum ErrorCode {
    OK(0, "一切OK"),
    UNKNOW_ERROR(-1,"未知错误"),
    ACCESS_DENIED(5001,"用户名或密码错误登录被拒绝"),
    NULL_VALUE(5002,"空值异常");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ErrorCode(int code, String mess) {
        this.code = code;
        this.message = mess;
    }
}
